FROM maven:3.5-jdk-8-alpha as builder
LABEL authors="Sunny"

# Copy local code to the container image.
WORKDIR /app
COPY pom.xml .
COPY src ./src

# Build a release artifact.
RUN mvn package -DskipTests

# Run the web
CMD ["java", "-jar", "target/match-0.0.1-SNAPSHOT.jar", "--spring.profiles.active=prod"]